import request from "@/util/request";
enum API {
    TAGE = "/share/tag",
    TAGE_PARENT = "/share/tag/parent",
}

export function reqUpdateTag(tag: any) {
    return request({
        url: API.TAGE,
        method: "put",
        data: tag
    });
}
export function reqGetTagPage(query: any) {
    return request({
        url: API.TAGE_PARENT,
        method: "get",
        params: query
    });
}
export function reqCreateTag(tag: any){
    return request({
        url: API.TAGE,
        method: "post",
        data: tag
    });
}
